package com.googlecode.jlogindexer.document;

import java.util.Date;

import org.apache.solr.client.solrj.beans.Field;

public class LogDocument {
	
	
	/*
	 * 
<log4j:event logger="com.googlecode.jlogindexer.AutoLogger" timestamp="1298824120062" level="WARN" thread="main">
	<log4j:message><![CDATA[This is a warning message]]></log4j:message>
</log4j:event>
	 * 
	 * 
	 */
	
	@Field
	private long id;
	@Field
	private Date timestamp;
	@Field
	private String level;
	@Field
	private String threadName;
	@Field
	private String className;
	@Field
	private String fileName;
	@Field
	private String methodName;
	@Field
	private int lineNumber;
	@Field
	private String outMessage;
	@Field
	private String errorMessage;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public Date getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getThreadName() {
		return threadName;
	}
	public void setThreadName(String threadName) {
		this.threadName = threadName;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getMethodName() {
		return methodName;
	}
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	public int getLineNumber() {
		return lineNumber;
	}
	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}
	public String getOutMessage() {
		return outMessage;
	}
	public void setOutMessage(String outMessage) {
		this.outMessage = outMessage;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	

}
